<div class="panel-header row">
    <div class="col-xs-8">
        <h2>Cập nhật thông tin</h2>
    </div>
    <div class="col-xs-4" style="padding-bottom:5px;">
        <img class="col-xs-8" id="avatar"src="<?php echo base_url(); ?>img/avatar.jpg" alt="">
    </div>
</div>
<?php
$attributes = array('class' => 'form-horizontal');
echo form_open("thanhvien/thanhvien/updateProfile/" . $query['id']);
?>

<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title">Thông tin cá nhân</h3>
    </div>
    <div class="panel-body">
        <!--            <div class="form-group row">
                        <div class="col-xs-3">
                            <label class="control-label" for="avatar">Hình đại diện</label>
                        </div>
        
                        <div class="col-xs-6">
                            <input type="file" id="avatar" accept="image/*">
                        </div>
                    </div>-->
        <div class="form-group row">
            <div class="col-xs-3">
                <label class="control-label" for="name">Họ tên</label>
            </div>                        
            <div class="col-xs-6">
                <input type="text" id="display_name" name="display_name"class="form-control" placeholder="Họ tên" value="<?php echo $query['tenhienthi']; ?>" />
                <?php echo form_error('display_name'); ?>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-xs-3">
                <label class="control-label" for="sexual">Giới tính</label>
            </div>
            <div class="col-xs-6">
<!--                    <select class="form-control input-sm" id= "sex">
                    <option value="0">Giới tính</option>
                    <option value="1">Nam</option>
                    <option value="2">Nữ</option>
                </select>-->
                <?php
                $opt_trinhdo = array(
                    '0' => 'Nam',
                    '1' => 'Nữ',
                    '2' => 'Không xác định',
                );

                echo form_dropdown('gioitinh', $opt_trinhdo, '2', 'Class="form-control"');
                ?>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-xs-3">
                <label class="control-label" for="numPhone">Số điện thoại</label>
            </div>

            <div class="col-xs-6">
                <input type="text"  Class="form-control" placeholder="Số điện thoại"  id="phone_number" name="phone_number" value="<?php echo $query['sodienthoai']; ?>" />
                <?php echo form_error('phone_number', '<p class="text-danger" style="font-size:15px;">', '</p>'); ?>
            </div>

        </div>
        <div class="form-group row">
            <div class="col-xs-3">
                <label class="control-label" for="address">Địa chỉ</label>
            </div>

            <div class="col-xs-6">
                <?php
                $address = array(
                    'name' => 'address',
                    'id' => 'address',
                    'value' => $query['diachi'],
                    'rows' => '5',
                    'cols' => '10',
                    'class' => 'form-control',
                );

                echo form_textarea($address);
                ?>
                <?php echo form_error('address', '<p class="text-danger" style="font-size:15px;">', '</p>'); ?>
            </div>

        </div>
        <div class="form-group">
            <div class="col-xs-3"></div>
            <div class="col-xs-3">
                <button type="submit" class="btn btn-primary btn-sm btn-block">Thay đổi</button>
            </div>
            <div class="col-xs-2">
                <button type="reset" class="btn btn-default btn-sm btn-block">Hủy</button>
            </div>


        </div>
    </div>
</div>
<?php echo form_close(); ?>